﻿using PowerHub.MES.DTO.ProcessRoute.DTO;
using PowerHub.MES.DTO.ProcessRoute.QueryDto;
using PowerHub.MES.Entities.ProcessRoute;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IServices.IProcessRoute
{
    /// <summary>
    /// 工艺路线接口层
    /// </summary>
    public interface IProcessRoute_CraftBillServices
    {
        /// <summary>
        /// 获取工艺路线列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<ProcessRoute_CraftBill>>> GetProcessRoute_CraftBillPageListAsync(QueryProcessRoute_CraftBillDTO query);


        /// <summary>
        /// 添加工艺路线
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> CreateProcessRoute_CraftBillAsync(ProcessRoute_CraftBillDTO query);

        /// <summary>
        /// 批量删除工艺路线
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> DeletionProcessRoute_CraftBillAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> UpdateProcessRoute_CraftBillAsync(ProcessRoute_CraftBillDTO query);

        /// <summary>
        /// 获取工艺路线明细列表
        /// </summary>
        /// <param name="pageQuery"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<ProcessRoute_CraftBillDetial>>> GetProcessRoute_CraftBillDetialsPageListAsync(QueryProcessRoute_CraftBillDTO pageQuery);

        /// <summary>
        /// 修改明细排序
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> UpdateProcessRoute_CraftBillDetialAsync(List<ProcessRoute_CraftBillDetial> query);

        /// <summary>
        /// 删除明细
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> DeletionProcessRoute_CraftBillDetialAsync(List<string> ids);
    }
}
